package com.zyp.test.test;

import android.content.Context;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.view.View;

/**
 * @author zyp
 *         2017/11/10
 */

public class MyView extends View {

    private BitmapFactory.Options mOptions;

    public MyView(Context context) {
        super(context);
        initView();
    }

    public MyView(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
        initView();
    }
    private void initView(){
        mOptions = new BitmapFactory.Options();
        mOptions.inPurgeable = true;
    }
    @Override
    protected void onDraw(Canvas canvas) {
       
        //BitmapFactory.decodeResource(getResources(),R.mipmap.icon,)
       // canvas.drawBitmap();
    }
}
